import request from '@/utils/request';
import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';

// 获取路由
export const getRouters = () => {
  return request({
    url: '/system/auth/list-menus',
    method: 'get'
  });
};

// 获取左侧菜单(返回授权且visible为true的数据)
export const systemAuthListLeftMenus = () => {
	return request({
		url: '/system/auth/list-left-menus',
		method: 'get'
	});
};

export const systemAuthListCategoryMenus = (params) => getRequest('/system/auth/list-category-menus', params);
export const systemAuthGetCustomMenu = (params) => getRequest('/system/auth/get-custom-menu', params);
export const systemAuthSaveCustomMenu = (params) => postRequest('/system/auth/save-custom-menu', params);
